package at.meder.evaluation;

import org.eclipse.jface.preference.PreferenceManager;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PlatformUI;

public class Perspective implements IPerspectiveFactory {

	private IFolderLayout left;

	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(true);
		layout.setFixed(true);
		
		String editorArea = layout.getEditorArea();
        layout.setEditorAreaVisible(true);
        layout.setFixed(false);

        left = layout.createFolder("left", IPageLayout.LEFT, 0.35f, editorArea);
        
        
        left.addView(View.ID);
        PreferenceManager pm = PlatformUI.getWorkbench().getPreferenceManager();
        //IWorkbenchPage.hideActionSet("org.eclipse.ui.edit.text.actionSet.annotationNavigation"); 
        pm.remove("org.eclipse.ui.edit.text.actionSet.annotationNavigation");
        
	}
	
	

	public IFolderLayout getLeft() {
		return left;
	}
	
	

}
